﻿namespace AnyOffice.Model
{
    using System;

    public class BbsCommentData
    {
        protected object _attachmentId;
        protected object _authorName;
        protected int _boardId;
        protected int _commendId = -1;
        protected object _content;
        protected DateTime _lastReplyTime = DateTime.Now;
        protected int _parentId;
        protected int _readCount;
        protected int _replyCount;
        protected string _subject = string.Empty;
        protected DateTime _submitTime = DateTime.Now;
        protected string _userId = string.Empty;

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public string AuthorName
        {
            get
            {
                return (string) this._authorName;
            }
            set
            {
                this._authorName = value;
            }
        }

        public bool AuthorNameIsNull
        {
            get
            {
                return (this._authorName == null);
            }
            set
            {
                if (value)
                {
                    this._authorName = null;
                }
            }
        }

        public int BoardId
        {
            get
            {
                return this._boardId;
            }
            set
            {
                this._boardId = value;
            }
        }

        public int CommentId
        {
            get
            {
                return this._commendId;
            }
            set
            {
                this._commendId = value;
            }
        }

        public string Content
        {
            get
            {
                return (string) this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public bool ContentIsNull
        {
            get
            {
                return (this._content == null);
            }
            set
            {
                if (value)
                {
                    this._content = null;
                }
            }
        }

        public DateTime LastReplyTime
        {
            get
            {
                return this._lastReplyTime;
            }
            set
            {
                this._lastReplyTime = value;
            }
        }

        public int ParentId
        {
            get
            {
                return this._parentId;
            }
            set
            {
                this._parentId = value;
            }
        }

        public int ReadCount
        {
            get
            {
                return this._readCount;
            }
            set
            {
                this._readCount = value;
            }
        }

        public int ReplyCount
        {
            get
            {
                return this._replyCount;
            }
            set
            {
                this._replyCount = value;
            }
        }

        public string Subject
        {
            get
            {
                return this._subject;
            }
            set
            {
                this._subject = value;
            }
        }

        public DateTime SubmitTime
        {
            get
            {
                return this._submitTime;
            }
            set
            {
                this._submitTime = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

